package com.bosssoft.trainee.nontax.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liuqiang
 * @date 2022/6/21 16:08
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class MyException extends RuntimeException {

    private final String code;
    private final String msg;

    public MyException(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
